<{include file="Public/top.html" }>
</head>
<body>
<div id="warpper">
    <div class="content">
        <form onsubmit="update();return false;" class="ui-form" id="addManagerForm" method="post" >
            <input type="hidden" name="mid" value="<{$mid}>" />
            <div class="topic">可参与抽奖用户编辑</div>
            <div class="form-box border0 border-box">
                <div class="ui-form-item">
                    <label class="ui-label">用户编号清单<br />逗号分隔</label>
                    <textarea  name="list" class="ui-textarea"  style="width: 65%"><{$list}></textarea>
                </div>
            </div>
        <div class="integral_btn-group">
            <input type="submit" value="提交" class="ui-button"/>
            <input type="reset" value="重置" class="ui-button fade-o-butn"/>
        </div>


    </form>

    </div>
</div>

<{include file="Public/foot.html" }>
</body>
</html>
<script>
    //提交数据
    function update(){
        var param = $("#addManagerForm").serialize();
        var url = "<{U('chance')}>";
        layer.load()
        $.post(url,param,function(data){
            layer.closeAll();
            if(data.status==0){
                layer.msg(data.msg, {
                    icon: 1,
                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function(){
                    parent.window.layer.closeAll()
                });
            }else{
                layer.msg(data.msg);
            }
        },'json');
    }

</script>
